<template>
    <div v-if="log != null">
        <table class="bs-table">
            <tr class="bs-table_row">
                <th class="bs-table_th">操作人</th>
                <td class="bs-table_td">{{log.nickname}}</td>
                <th class="bs-table_th">操作日期</th>
                <td class="bs-table_td">{{log.createTime}}</td>
            </tr>
            <tr class="bs-table_row">
                <th class="bs-table_th">转办意见</th>
                <td class="bs-table_td" colspan="3">{{log.opinion}}</td>
            </tr>
        </table>
    </div>
</template>

<script>
    import {getTargetLogForCurrentUser} from "@/api/opinion";

    export default {
        name: "targetLogForCurrentUser",
        data(){
            return{
                log: null
            }
        },
        props:{
            targetId:{
                type: Number,
                required: true
            }
        },
        created() {
            let params = {
                targetId: this.targetId
            };
            getTargetLogForCurrentUser(params)
                .then((res)=>{
                    this.log = res.data.data;
                })
        }
    }
</script>

<style scoped>

</style>